/* private */ var $img; // Image object this page is shown for
+ function render() {
+ global $wgOut;
+ $wgOut->setArticleBodyOnly(true);
+ $wgOut->addWikitext($this->getContent(true));
+ }
+
function view() {
global $wgUseExternalEditor, $wgOut, $wgShowEXIF;
if ($wgRepositoryBaseUrl && $wgFetchCommonsDescriptions) {
$ur = ini_set('allow_url_fopen', true);
- $text = @file($url);
+ $text = @file_get_contents($url);
ini_set('allow_url_fopen', $ur);
if ($text)
$wgOut->addHTML($text);
function setETag($tag) { $this->mETag = $tag; }
function setArticleBodyOnly($only) { $this->mArticleBodyOnly = $only; }
+ function getArticleBodyOnly($only) { return $this->mArticleBodyOnly; }
function addLink( $linkarr ) {
# $linkarr should be an associative array of attributes. We'll escape on output.